//
//  RecommendKitchenInfo.m
//  Kitchen
//
//  Created by   on 15/8/28.
//  Copyright (c) 2015年 雍玉虎. All rights reserved.
//

#import "RecommendKitchenInfo.h"

@implementation RecommendKitchenInfo

+(instancetype)RecommendSetRecommendValuesFOrKeyWithDictionary:(NSDictionary *)dicionary {
    return [[RecommendKitchenInfo alloc]initSetRecommendValuesFOrKeyWithDictionary:dicionary];
}
//  初始化方法
- (instancetype)initSetRecommendValuesFOrKeyWithDictionary:(NSDictionary *)dicionary {
    self = [super init];
    if (self) {
        self.pics = [NSMutableArray new];
        self.author = [NSMutableDictionary new];
        self.sample_recipes = [NSMutableArray new];
        [self setValuesForKeysWithDictionary:dicionary];
        
    }
    return self;
}

/**
 *  给model赋值
 */
-(void)setValue:(id)value forUndefinedKey:(NSString *)key {

    
    if ([key isEqualToString:@"id"]) {
        self.ID = value;
//        NSLog(@"%@",self.ID);
    }
 }
@end
